package net.csdra.place.domain;

import net.csdra.basis.domain.EntityBase;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;
import java.sql.Timestamp;

/**
 * Created by msf on 2018/1/29.
 * metaId表示Place
 */
@Entity
@Table(indexes = {@Index(name = "INDEX1", columnList = "META_ID,ENTITY_DELETE,ENABLED,ENTITY_ORDER"),
        @Index(name = "INDEX2", columnList = "RESERVATION_BEGIN_TIME,RESERVATION_END_TIME"),
        @Index(name = "INDEX3", columnList = "RESERVATIONSTATE"),
        @Index(name = "INDEX4", columnList = "RESERVATIONSTATE,RESERVATION_BEGIN_TIME,RESERVATION_END_TIME")
})
public class ReservationPlace extends EntityBase {

    //开始时间
    @Column(name = "RESERVATION_BEGIN_TIME")
    Timestamp begin;
    //结束时间
    @Column(name = "RESERVATION_END_TIME")
    Timestamp end;
    //预计到场人数
    int numberOfPeople;
    //说明
    String info;
    //预约状态，来着于ReservationState
    @Column(name = "RESERVATIONSTATE")
    String reservationState;

    public String getReservationState() {
        return reservationState;
    }

    public void setReservationState(String reservationState) {
        this.reservationState = reservationState;
    }

    public Timestamp getBegin() {
        return begin;
    }

    public void setBegin(Timestamp begin) {
        this.begin = begin;
    }

    public Timestamp getEnd() {
        return end;
    }

    public void setEnd(Timestamp end) {
        this.end = end;
    }

    public int getNumberOfPeople() {
        return numberOfPeople;
    }

    public void setNumberOfPeople(int numberOfPeople) {
        this.numberOfPeople = numberOfPeople;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }
}
